<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%> 

<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=9">
         <link rel="stylesheet" href="<%=basePath%>css/cssreset.css">
        <link rel="stylesheet" href="<%=basePath%>style/style.css">
        <link rel="stylesheet" href="<%=basePath%>css/sty.css">
        <link rel="stylesheet" href="<%=basePath%>style/style2.css">
        <link rel="stylesheet" href="<%=basePath%>css/easyui.css">
        <link rel="stylesheet" href="<%=basePath%>css/icon.css">
        <link rel="stylesheet" href="<%=basePath%>css/mycss.css">
        <link rel="stylesheet" href="<%=basePath%>css/color.css">
         <link rel="stylesheet" href="<%=basePath%>css/mystyle.css">
		<script src="<%=basePath%>js/jquery-1.11.1.min.js"></script>
		<script src="<%=basePath%>js/jquery.easyui.min.js"></script>
	   <script src="${pageContext.request.contextPath}/salejihui/My97DatePicker/WdatePicker.js"></script>  
    </head>
    <body>
     <c:if test="${show!=null}">
      <script type="text/javascript">
      window.onload=function(){  
    	     alert("${reult}");
    	} 
      </script>
      </c:if>
    	<div class="bigbox">
    		<nav class="daohan">
                <ul>
                	<li class="sh1">
                        <a href="<%=basePath %>notice/findByAll.action"><p class="mline"><span class="smallicon" id="current1"></span><span class="navtxt">首页</span></p></a>  
                    </li>
                    <li>
                        <a href="<%=basePath %>client/qiangenzongcount.action?zhuizong=0"  ><p class="mline"><span class="smallicon" id="current11"></span><span class="navtxt"  >用户开发</span></p></a>
                    </li>
                    <li>
                        <a href="<%=basePath %>client/selectDepOrSta.action?start=1">
                            <p class="mline">
                                <span class="smallicon" id="ziji11"></span>
                                <span class="navtxt">代理开发</span>
                            </p>
                        </a>
                    </li>
                    <%-- <li class="sh2">
                        <a href="<%=basePath %>client/selectByStaffAnd.action?start=1"><p class="mline"><span class="smallicon one1"></span><span class="navtxt">客户资料</span><span class="ripic"></span></p></a>
                        <div class="showhide2">
                            <a href="<%=basePath %>client/selectByStaffAnd.action" style="font-size:14px;background:#435565;">
                             <p class="mline mline2">
                                <span class="smallicon" id="ziji3"></span>
                                <span class="navtxt" style="font-size: 14px;color:#929da8;">用户资料</span>
                             </p>
                             </a> 

                             <a href="<%=basePath %>client/selectByStaffAnd.action?start=1" style="font-size:14px;margin-top:-22px;background:#435565;">
                             <p class="mline mline2">
                                <span class="smallicon" id="ziji34"></span>
                                <span class="navtxt" id="current2" style="font-size: 14px;color:#929da8;">代理资料</span>
                             </p>
                             </a>    
                        </div>
                    </li> --%>
                    <li>
                        <a href="<%=basePath %>approve/count.action?pageSize=0"><p class="mline"><span class="smallicon one2"></span><span class="navtxt">合同审批</span></p></a> 
                    </li>
                    <li>
                         <a href="<%=basePath%>page/pacts.jsp" id="sline">
                             <p class="mline"><span class="smallicon one24"></span><span class="navtxt"  id="current2">审批详情</span></p>
                         </a>
                        
                    </li>
                    
                     <li>
                        <a href="<%=basePath %>Operate/count.action">
                             <p class="mline"><span class="smallicon" id="yunyin2"></span><span class="navtxt">运营管理</span></p>
                         </a>
                    </li>  
                    
                   <li>
                        <a href="#"><p class="mline"><span class="smallicon one3"></span><span class="navtxt">产品资源库</span></p></a>
                    </li>
                     <c:if test="${backstage == 1}">
                    	<li>
	                        <a href="<%=basePath %>client/findByAllGr.action"><p class="mline"><span class="smallicon one333"></span><span class="navtxt">后台管理</span></p></a>
	                    </li>
                    </c:if>
                </ul>
        	</nav>
            
    		<div class="showbox">
                <h2>
					<span class="exit">
						<span class="ex1">姓名:${staff.staff_name}</span>
						<a href="../login/tuichustaff.action" class="ex2"><span class="exicon2"></span>切换账号</a>
						<a href="../login/tuichustaff.action" class="ex3"><span class="exicon3"></span>退出账号</a>
					</span>
                </h2>
                <div class="showbox2" style="width:100%;">
                	
	    			<div class="changebox">
	    				<p class="changetitle">
	                		<a href="<%=basePath%>page/pacts.jsp" class="lighten">开户审批表</a>
	                		<a href="<%=basePath%>pages/audits.jsp">合同审批表</a>
	                	</p>
						<form action="<%=basePath%>contractApprove/insert.action" method="post" onsubmit="return aa()" class="changebox1" enctype="multipart/form-data">
							<div class="changecenter">
								<p class="centerleft">
									<span>
										<b>审 批 部 门</b>
										<b><input type="text" class="input1 easyui-combobox" name="apperoveTail" data-options="valueField:'approveRoleId',textField:'flowNme',url:'<%=basePath%>approveRole/findflowNme.action'"  ></b>
									</span>
									<span>
										<b>申 请 性 质</b>
										<b><input type="text" class="input1 easyui-combobox" name="applyNatureOne" data-options="valueField:'approveRoleId',textField:'flowNme',url:'<%=basePath%>rank/findflowNme.action'"></b>
									</span>
									<span>
										<b>产 品 类 别</b>
										<b><input type="text" class="input1 easyui-combobox" name="pCategory" data-options="valueField:'approveRoleId',textField:'flowNme',url:'<%=basePath%>salestage/selectname.action'"></b>
									</span>
									<span>
										<b>单 位 名 称</b>
										<b><input type="text" class="input1" name="cooperator"></b>
									</span>
									<span>
										<b>负 责 人</b>
										<b><input type="text" class="input1" name="rPerson"></b>
									</span>
									<span>
										<b>合 同 编 号</b>
										<b><input type="text" class="input1" name="contractId"></b>
									</span>
									<span>
										<b>合 约 比 例</b>
										<b><input type="text" class="input1" name="contractRate"></b>
									</span>
									<span>
										<b>合 约 期 限</b>
										<b><input type="text" class="input1" name="contractTime"></b>
									</span>
									<span>
										<b>现 在 办 公 地 址</b>
										<b><input type="text" class="input1" name="workLocation"></b>
									</span>
									<span>
										<b>合 约 内 容</b>
										<b>
											<textarea  id="" name="contractContent"></textarea>
										</b>
									</span>
								</p>
								<p class="centerright">
									<span>
										<b>保 证 金</b>
										<b><input type="text" class="input1" name="deposit"></b>
									</span>
									<span>
										<b>客 户 电 话</b>
										<b><input type="text" class="input1" name="clientelePhone"></b>
									</span>
									<span>
										<b>客 户 Q Q</b>
										<b><input type="text" class="input1" name="serviceQQ"></b>
									</span>
									<span>
										<b>招 商 经 理</b>
										<b><input type="text" class="input1" name="Imanager"></b>
									</span>
									<span>
										<b>激 活 时 间</b>
										<b><input type="text" class="input1" name="activateTime"  onfocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd', readOnly:true})"></b>
									</span>
									<span>
										<b>上 传 身 份 证 正 面</b>
										<b><input type="file" class="input1" name="identityFrontFile" id="filea"></b>
									</span>
									<span>
										<b>上 传 身 份 证 反 面</b>
										<b><input type="file" class="input1" name="identityReverseFile" id="fileb"></b>
									</span>
									<span>
										<b>上 传 营 业 执 照</b>
										<b><input type="file" class="input1" name="bLicenseimageFile" id="bLicense"></b>
									</span>
									<span>
										<b>上 传 附 加 文 件</b>
										<b><input type="file" class="input1" name="fileUploadingFile"></b>
									</span>
									<span class="btncheck">
										<input type="submit" value="提 交">
									</span>
								</p>
							</div>	
						</form>
						
	    			</div>
	    			
	    		</div>
            </div>
    	</div>
  
    	<script src="../My97DatePicker/WdatePicker.js"></script>
   
    	<script>
       function aa(){
        var p=/\s/;
            if($('#filea').val()==''){
                alert('请上传身份证正面！');
                return false;
            }else if($('#fileb').val()==''){
                alert('请上传身份证反面！');
                return false;
            } else if($('#bLicense').val()==''){
                alert('请上传营业执照！');
                return false;
            }
            return true;
       }
    </script>
    <script>
    $(function(){
        $('.sh2').mouseover(function(event) {
        $('.showhide2').css('display', 'block');
    });
    $('.sh2').mouseout(function(event) {
        $('.showhide2').css('display', 'none');
    });
    })
    </script> 
    </body>
</html>
    	